package com.chenye.consulFegin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * Created by chenye on 2018/3/17.
 */
@SpringBootApplication
@EnableDiscoveryClient //发现所有eureka上注册的服务
@EnableFeignClients//开启feign功能
@EnableHystrixDashboard//开启hystrix监控
public class ConsulFeignApplication {
    public static void main(String[] args){
        SpringApplication.run(ConsulFeignApplication.class,args);
    }

}
